<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/bootstrap.min.css" rel="stylesheet" >
<script type="text/javascript" src ="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src ="js/bootstrap.min.js"></script>
<title>Insert title here</title>
<script type="text/javascript">
	$(function(){		
	$.getJSON("getAjaxJson",function(result){
		$(result).each(function(index,item){
			$("table").append("<tr></tr>");
			var $new_tr=$("table tbody").children().last();
				$new_tr.append("<td>"+item.id+"</td>");
				$new_tr.append("<td>"+item.loginName+"</td>");
				$new_tr.append("<td>"+item.pwd+"</td>");
		});
	});
})
</script>
</head>
<body>
	<table class="table table-hover">
		<tr>
			<td>编号</td>
			<td>姓名</td>
			<td>密码</td>
		</tr>
	</table>
	
</body>
</html>